Defining Process Platform Alerts |
|
An alert on Process Platform framework is defined on a managed component during its creation. This implies that all the alerts on a particular managed component are defined before registering the component. After a managed component is registered, a new alert cannot be created on it.
Sample code for an alert definition
The following sample code shows how to define an alert on a managed component.
{ //Creation of managed component ManagedComponent m_managedComponent = ManagedProcess.createManagedComponent('SOAPProcessor',description); . . // defining the alert for LDAP server failure on the managed component IAlertDefinition s_monitorStartLdapFailureAlert = m_managedComponent.defineAlert(AlertLevel.ERROR, Messages.MONITOR_START_ERROR_LDAP_FAILURE, Messages.MONITOR_START_ERROR_LDAP_FAILURE_DESC); // define all alerts .. .. //registration of component m_managedComponent.registerComponentTree(); }